import {Component, OnInit, ElementRef, Renderer2, AfterViewInit, OnDestroy} from '@angular/core';
import {DevelopmentMaService} from './development-ma.service';

@Component({
    selector: 'kylin-development-ma',
    templateUrl: './development-ma.component.html',
    styleUrls: ['./development-ma.component.less']
})
export class DevelopmentMaComponent implements OnInit, AfterViewInit, OnDestroy {

    forms: any[];
    data: any;

    constructor(private elementRef: ElementRef,
                private renderer: Renderer2,
                private developmentMaService: DevelopmentMaService
    ) {
        this.forms = this.developmentMaService.getForms();
    }

    formData(event) {
        this.data = event;
    }

    ngOnInit() {
    }

    ngAfterViewInit() {
        console.log('%c developmentMa %c', 'background:#222;color:#bada55', '>>');
    }

    ngOnDestroy() {

    }

}
